/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.qjs.smterp.model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Vostro 3400
 */
@Entity
@Table(name = "tb_docs_instock")
@XmlRootElement
//@NamedQueries({
//    @NamedQuery(name = "DocsInstock.findAll", query = "SELECT d FROM DocsInstock d"),
//    @NamedQuery(name = "DocsInstock.findByDocsInstockId", query = "SELECT d FROM DocsInstock d WHERE d.docsInstockPK.docsInstockId = :docsInstockId"),
//    @NamedQuery(name = "DocsInstock.findByInstockId", query = "SELECT d FROM DocsInstock d WHERE d.docsInstockPK.instockId = :instockId"),
//    @NamedQuery(name = "DocsInstock.findByDocTitle", query = "SELECT d FROM DocsInstock d WHERE d.docTitle = :docTitle")})
public class DocsInstock implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "DOCS_INSTOCK_ID")
    private int docsInstockId;
    @Basic(optional = false)
    @Column(name = "INSTOCK_ID")
    private int instockId;
    @Column(name = "DOC_TITLE")
    private String docTitle;
    @Column(name = "DOC_SUMMARY")
    private String docSummary;
    @Column(name = "DOC_CONTENT")
    private String docContent;
    @Column(name = "VERSION_NUM")
    private Integer versionNum;
    @Column(name = "CREATED_BY")
    private String createdBy;
    @Column(name = "CREATED_DATE")
    @Temporal(TemporalType.TIMESTAMP)
    private Date createdDate;
    @Column(name = "UPDATED_BY")
    private String updatedBy;
    @Column(name = "UPDATED_DATE")
    @Temporal(TemporalType.TIMESTAMP)
    private Date updatedDate;

    public DocsInstock() {
    }

    
    public int getDocsInstockId() {
		return docsInstockId;
	}


	public void setDocsInstockId(int docsInstockId) {
		this.docsInstockId = docsInstockId;
	}


	public int getInstockId() {
		return instockId;
	}


	public void setInstockId(int instockId) {
		this.instockId = instockId;
	}


	public String getDocTitle() {
        return docTitle;
    }

    public void setDocTitle(String docTitle) {
        this.docTitle = docTitle;
    }

    public String getDocSummary() {
        return docSummary;
    }

    public void setDocSummary(String docSummary) {
        this.docSummary = docSummary;
    }

    public String getDocContent() {
        return docContent;
    }

    public void setDocContent(String docContent) {
        this.docContent = docContent;
    }

    public Integer getVersionNum() {
        return versionNum;
    }

    public void setVersionNum(Integer versionNum) {
        this.versionNum = versionNum;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    public Date getUpdatedDate() {
        return updatedDate;
    }

    public void setUpdatedDate(Date updatedDate) {
        this.updatedDate = updatedDate;
    }
}
